package com.rui.patterns.adapter.class_adapter;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : SDAdapter
 * @createTime : [2022/2/22 15:20]
 * @description : [SD适配TF，适配器类]
 */

public class SDAdapterTF extends TFCardImpl implements SDCard{

    @Override
    public String readSD() {
        System.out.println("adapter read TFCard");
        return readTF();
    }

    @Override
    public void wireSD(String msg) {
        System.out.println("adapter wire TFCard");
        writeTF(msg);
    }
}
